import Tools from 'tools/index';
import apiConfig from "./../apiConfig";
export default {
    async SelectDataStore(params_) {
        if (!this.isError(params_)) return
        // 打开加载遮罩层
        Tools.setLoad(true);
        let _d = await import("./index.js");
        console.log("_d", _d);
        // 关闭加载遮罩层
        Tools.setLoad(false);
        // 最大选择数量
        if (params_.count == undefined) {
            params_.count = -1
        }
        _d.default.init({
            appWindow: params_.appWindow,
            selectIds: params_.selectIds,
            count: params_.count,
            cannotSelectIds: params_.cannotSelectIds,
            apiConfig: this.setConfig(params_.apiConfig, apiConfig),
            onSuccess: (r) => {
                params_.onSuccess(r)
            },
        })
    },
}